<extend name="Public:base" />

<block name="content">

<div class="page-header">
	<a href="{:U('AuthGroup/addadmin')}" class="btn btn-primary btn-sm radius5">新增管理员</a>
</div>

<div class="row">
	<div class="col-xs-12">
		<div class="table-responsive">
			<table class="table table-striped table-bordered table-hover">
				<thead>
					<tr>
						<!--<th>ID</th>-->
						<th>用户账户</th>
						<th>创建者</th>
						<th>修改</th>
					</tr>
				</thead>
				<tbody>
						<volist name="list" id="m" empty="$empty">
						<tr>
							<!--<td>{$m.id}</td>-->
							<td>{$m.a_uname}</td>
							<td>{$m.create_user}</td>
							<td>
								<a  class="btn btn-xs btn-info radius5" href='{:U("AuthGroup/add",array("id"=>$m["a_id"]))}'>
									修改
								</a>
							</td>
						</tr>
						</volist>

						<tr>
							<td colspan="20" class="page">{$page}</td>
						</tr>
				</tbody>

			</table>
		</div>
	</div>
</div>
</block>
<block name="javascript">
<script>
$(function(){

	$("#search").click(function () {
        var url = $(this).attr('url');
        var query = $('.search-form').find('input,select').serialize();
        query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
        query = query.replace(/^&/g, '');
        if (url.indexOf('?') > 0) {
            url += '&' + query;
        } else {
            url += '?' + query;
        }
        window.location.href = url;
    });


});
</script>
</block>